package com.kpx.app.utils;

import java.util.regex.Pattern;

/**
 * User: 陈聪(617909447@qq.com)
 * Date: 2016-07-08
 * Time: 10:21
 * FIXME
 */
public class MyLocationUtil {
    private static String API = "http://restapi.amap.com/v3/geocode/geo?key=<key>&s=rsv3&address=<address>";

    private static String KEY = "2301b3039b3b588b6fa90c5b17a319a1";

    private static Pattern pattern = Pattern.compile("\"location\":\"(\\d+\\.\\d+),(\\d+\\.\\d+)\"");

    static {
        init();
    }

    private static void init() {
        System.out.println("高德地图工具类初始化");
        System.out.println("api: {}" + API);
        System.out.println("key: {}" + KEY);
        API = API.replaceAll("<key>", KEY);
    }


}
